package com.jtjrenren.android.taxi.driver.core.main;

import com.jtjrenren.android.taxi.driver.bean.api.ApiDriverSr;
import com.jtjrenren.android.taxi.driver.bean.event.DriverIncomeEvent;
import com.jtjrenren.android.taxi.driver.manger.api.ApiWorks;


import org.greenrobot.eventbus.EventBus;

/**
 * Created by Administrator on 2016/8/26.
 */

public class MainInterctorImpl implements MainInterctor {


    @Override
    public void getSjSr(String driverID) {
        ApiWorks.getTodaySr(driverID, new ApiWorks.ResponseListener<ApiDriverSr>() {
            @Override
            public void onResponse(ApiDriverSr apiDriverSr) {
                EventBus.getDefault().post(new DriverIncomeEvent(apiDriverSr));
            }
        });
    }
}
